<template>
	<view class="all">
		<view style="margin-bottom: 20rpx;" v-for="(item,index) in 5">
			<view style="width: 100;height:280rpx;
			background-image:url(https://s4.ax1x.com/2022/01/14/78AYLR.png);
			background-size: 100%;
			">
				<image style="width:72rpx;height:29rpx;
				margin: 20rpx 0 0 20rpx;"
					:src="index%2?'https://s4.ax1x.com/2022/01/14/78EY9S.png':'https://s4.ax1x.com/2022/01/14/78Z4fK.png'">
				</image>
			</view>
			<view class="text">
				精品幼教课程《戴鹿角帽的罗杰》
			</view>
			<view class="text1">
				幼儿教育最考研教室的就是课堂纪律，如果课堂纪律不 好，孩子们会相互影响，且家长会认为老师不负责任...
			</view>
			<view class="foot">
				<view class="text21">
					<text>124</text>
					人已学习
				</view>
				<view class="foot1" v-if="-index%2==0">
					<image style="width: 100%;height: 100%;" src="https://s4.ax1x.com/2022/01/14/78ec38.png" mode="">
					</image>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.foot {
		display: flex;
		justify-content: space-between;

		.foot1 {
			margin-top: 10rpx;
			width: 160rpx;
			height: 58rpx;
		}
	}

	.text21 {
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		line-height: 33px;
		color: #131314;
		opacity: 1;

		text {
			color: #FF2424;
		}
	}

	.text1 {
		margin: 10rpx 0 10rpx 0;
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #131314;
		letter-spacing: 5rpx;
		opacity: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.text {
		margin-top: 10rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: bold;
		color: #131314;
		opacity: 1;
	}

	.all {
		padding: 20rpx;
	}
</style>
